package com.bocai;

import java.io.Serializable;
import java.util.List;

/**
 * 分页处理对象类
 * @author VIC
 *
 * @param <T>
 */
public class PageResult<T> implements Serializable {
	private int page;
	private long total;
	private List<T> result;
	private int size;
	
	public PageResult(int page, long total, List<T> result) {
		super();
		this.page = page;
		this.total = total;
		this.result = result;
		this.size = result.size();
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<T> getResult() {
		return result;
	}

	public void setResult(List<T> result) {
		this.result = result;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}
}
